<!--
 * @Descripttion: (公告/tb_notice 详情弹窗)
 * @version: (1.0)
 * @Author: (lwh)
 * @Date: (2023-10-09)
 * @LastEditors: (lwh)
 * @LastEditTime: (2023-10-09)
-->
<template>
  <el-dialog v-model="props.modelValue" title="公告信息详情" width="900px" @closed="closeDialog" @open="openDialog">
    <el-form ref="formRef" :model="formData" :disabled="true">

      <el-row :gutter="20">





        <el-col :lg="12">
          <el-form-item :label-width="labelWidth" label="标题">
            <el-input v-model="formData.noticeTitle" />
          </el-form-item>
        </el-col>

        <el-col :lg="24">
          <el-form-item :label-width="labelWidth" label="内容">
            <el-input v-model="formData.noticeContent" type="textarea" :rows="5" placeholder="请输入内容" />
          </el-form-item>
        </el-col>

        <el-col :lg="12">
          <el-form-item :label-width="labelWidth" label="排序">
            <el-input-number v-model.number="formData.noticeSort" controls-position="right" :precision="2" />
          </el-form-item>
        </el-col>






      </el-row>
    </el-form>
  </el-dialog>
</template>

<script setup>
import { ElMessage } from 'element-plus'
import { reactive, ref, watch } from "vue";


// -业务参数

// -业务方法



// 基础参数
const formRef = ref();
const labelWidth = 100;
const props = defineProps({
  modelValue: Boolean,
  data: Object,
  done: Function,
});
const formData = ref({
  ...props.data,
});
watch(props, async (v) => {
  formData.value = v.data;
});
const emits = defineEmits(["update:modelValue"]);


// -基础方法
const closeDialog = () => {
  emits("update:modelValue", false);
};


// 打开弹窗时回调
const openDialog = async () => {

}



</script>
